﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class UsersInputBase: ValidationModel
    {
        public string Mobile { get; set; }

        public string UserName { get; set; }

        public int ST { get; set; }

        public int RoleID { get; set; }


        public DateTime RoleDate { get; set; }


        public DateTime CreateDate { get; set; }

        public int ShopID { get; set; }

        /// <summary>
        /// 隶属来源ID
        /// </summary>
        public string FromID { get; set; }

        public string OpenID { get; set; }
        public string UserIcon { get; set; }




        /// <summary>
        /// 姓名
        /// </summary>
        public string TrueName { get; set; }

        public int ProvinceID { get; set; }

        public int CityID { get; set; }

        public int PartID { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 业务范围
        /// </summary>
        public string Service { get; set; }

        /// <summary>
        /// 职业
        /// </summary>
        public string Job { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 发动机型号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 车牌
        /// </summary>
        public string CarNum { get; set; }

        /// <summary>
        /// 收货地址
        /// </summary>
        public string Address { get; set; }

        public string UserPass { get; set; }

    }


    [MapToType(typeof(Users))]
    public class AddUsersInput : UsersInputBase
    { 
    }

    [MapToType(typeof(Users))]
    public class UpdateUsersInput : UsersInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
